#define _CRT_SECURE_NO_WARNINGS 1
#include"sparseArry.h"

int main()
{
	vector<vector<int>> arr;
	arr.resize(11);
	for (size_t i = 0; i < arr.size(); i++)
	{
		arr[i].resize(11);
	}
	arr[1][1] = 1;
	arr[3][3] = 2;
	arr[9][9] = 3;
	A::sparseArry<int> sp;
	sp.transToSparseArry(arr);
	//sp.Print();
	cout << sp;
	vector<vector<int>> num;
	num = sp.transToArry();
	for (size_t row = 0; row < num.size(); row++)
	{
		for (size_t col = 0; col < num[row].size(); col++)
		{
			cout << num[row][col] << "\t";
		}
		cout << endl;
	}
	return 0;
}